<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新品有戏后台管理</title>
    <link href="__CSS__/boot.css" rel="stylesheet">
    <link href="__STATIC__/layui/css/layui.css" rel="stylesheet">
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/layer/layer.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <style>
        th{
            text-align: center;
            vertical-align: middle!important;
        }
    </style>
</head>
<body>
{include file="base/header" /}
<table class="layui-table">
    <thead>
    <tr>
        <th>联系人</th>
        <th>联系电话</th>
        <th>地址</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {foreach $result as $val}
        <tr>
            <td>{$val.linkman}</td>
            <td>{$val.telephone}</td>
            <td>{$val.address}</td>
            <td>
                <button type="button" onclick="product({$bid},{$val.id})" class="btn btn-primary btn-xs">查看商品</button>
            </td>
        </tr>
    {/foreach}
    </tbody>
</table>
</body>
<script>
    function product(bid,sid) {
        window.location.href = "{:url('index/postbusiness/product')}?bid="+bid+"&sid="+sid;
    }

</script>
</html>